Partially update a cost target.
PATCH/cost_target/:id/
Allows partial updates to a cost target by ID, enabling changes to specific fields without requiring a full payload. This endpoint is useful for updating fields such as cost allocation or target parameters.
Request
Path Parameters
A unique integer value identifying this cost target.
- application/json
Body
required
Possible values: >= -2147483648
and <= 2147483647
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: [MONTHLY
, QUARTERLY
, ANNUALLY
]
Possible values: [DRAFT
, ACTIVE
, DELETED
]
Possible values: >= -2147483648
and <= 2147483647
Possible values: >= -2147483648
and <= 2147483647
Possible values: [BOTTOM_UP
, TOP_DOWN
]
Possible values: [AVERAGE_MONTHLY_LOOK_BACK
, PREVIOUS_MONTH
]
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= -2147483648
and <= 2147483647
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: [MONTHLY
, QUARTERLY
, ANNUALLY
]
Possible values: [DRAFT
, ACTIVE
, DELETED
]
Possible values: >= -2147483648
and <= 2147483647
Possible values: >= -2147483648
and <= 2147483647
Possible values: [BOTTOM_UP
, TOP_DOWN
]
Possible values: [AVERAGE_MONTHLY_LOOK_BACK
, PREVIOUS_MONTH
]
{
"id": 0,
"created": "2024-07-29T15:51:28.071Z",
"modified": "2024-07-29T15:51:28.071Z",
"report_id": 0,
"name": "string",
"target_type": "string",
"period": "MONTHLY",
"status": "DRAFT",
"number_of_periods": 0,
"start_date": "2024-07-29",
"end_date": "2024-07-29",
"look_back_period": 0,
"budget_type": "BOTTOM_UP",
"starting_value": "AVERAGE_MONTHLY_LOOK_BACK",
"growth_rate": 0,
"normalization_period": true,
"client": 0,
"created_by": 0
}